Skip to main content

prepare

Type

command

Summary

Preloads a movie into memory.

Syntax

prepare videoClip <filePath> [looping] [at <startPoint>]

Description

Use the prepare command to speed up execution of the play command.

Use the prepare command to preload the movie at some time before it is needed. Then use the play command with identical parameters to actually play the movie. Since the movie is already loaded into memory, it starts up instantly when the play command executes.

The parameters of the prepare command must be identical to those of the corresponding play command.

Parameters

NameTypeDescription

filePath

The location and name of the file you want to play. If you specify a name but not a location, LiveCode assumes the file is in the defaultFolder.

startPoint

This is the number of the interval where the selection begins. (The number of intervals per second is specified by the player's timeScale property. The total number of intervals is given in the player's duration property.)

Examples

prepare videoClip "/Disk/Folder/Movie" at 100,100
prepare videoClip ID 17 looping

command: play

function: movie

glossary: parameter, command, loaded into memory, execute

property: frameRate

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?